import * as types from './mutation-types'

export const setUser = function ({commit, state}, user) {
  commit(types.SET_USER, user)
}

export const setNewRouter = function ({commit, state}, newRouter) {
  commit(types.SET_NEW_ROUTER, newRouter)
}
